package com.zhengxin.one.service.impl;

import com.zhengxin.one.entity.Record;
import com.zhengxin.one.entity.client.RecordAdd;
import com.zhengxin.one.entity.excel.RecordExportExcel;
import com.zhengxin.one.mapper.RecordMapper;
import com.zhengxin.one.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class RecordServiceImpl implements RecordService {
    @Autowired
    RecordMapper recordMapper;
    @Override
    public List<Record> getRecords(String company_id,int page,int size,String start_time,String end_time,String keyword,String service_type,String status,String handle_type) {
        return recordMapper.getRecord(company_id,page,size,start_time,end_time,keyword,service_type,status,handle_type);
    }

    @Override
    public HashMap<String,Object> getOnesSo(String service_type, String handle_type, String id_card) {
        return recordMapper.getOneSo(service_type,handle_type,id_card);
    }

    @Override
    public int getReBacks(String service_type,String handle_type,String id_card) {
        return recordMapper.getReBack(service_type,handle_type,id_card);
    }

    @Override
    public List<RecordExportExcel> getRecordss(String company_id,int page, int size, String start_time, String end_time, String keyword, String service_type, String handle_type, String status) {
        return recordMapper.getRecords(company_id,start_time,end_time,keyword,service_type,handle_type,status);
    }

    @Override
    public int setPerson(RecordAdd recordAdd) {
        return recordMapper.setPerson(recordAdd);
    }
}
